package com.weiyuwqj.server.service.sys.impl;

import com.weiyuwqj.server.service.base.BaseServiceImpl;
import com.weiyuwqj.server.mapper.SysResourceMapper;
import com.weiyuwqj.api.service.SysResourceService;
import com.weiyuwqj.api.model.SysResource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zhangyong on 2016/7/21.
 */
@Service("resourceService")
public class SysResourceServiceImpl extends BaseServiceImpl<SysResource> implements SysResourceService {

    @Autowired
    SysResourceMapper resourceMapper;

    @Override
    public List<SysResource> getResources(Integer userId) {
        return resourceMapper.getResources(userId);
    }

    @Override
    public List<SysResource> getList() {
        return resourceMapper.getList();
    }
}
